package com.igeek.boot.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * *User 訫
 * *Description TODO
 * *Date 2024/8/21
 **/

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        WebMvcConfigurer.super.addResourceHandlers(registry);
        registry.addResourceHandler("/pic/**")
                .addResourceLocations("D:\\极客营133\\spring_boot\\1.SpringBoot\\pic\\");
    }
}
